package com.huike.demo;

import java.util.Calendar;

public class Test {
    public static void main(String[] args) {
        Calendar instance = Calendar.getInstance();
        System.out.println(instance);
        instance.set(Calendar.DAY_OF_MONTH,31);
        System.out.println(instance);
        instance.add(Calendar.DAY_OF_MONTH,1);
        System.out.println(instance);
    }
}
